package com.upcode.weighing.vo.pay.payrecord;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @author maoyuhong
 */
@Data
@EqualsAndHashCode(callSuper=false)
@ApiModel(value = "对账金额列表Vo",description = "对账金额列表Vo")
public class PayCheckVo implements Serializable {

    /**
     * 主键
     */
    @JsonSerialize(using= ToStringSerializer.class)
    @JsonFormat(shape = JsonFormat.Shape.STRING )
    @ApiModelProperty(value = "主键id")
    private Long id;

    @ApiModelProperty(value = "二级项目的id")
    @NotNull(message = "二级项目的id必须填写")
    @JsonSerialize(using= ToStringSerializer.class)
    private Long projectId;

    @ApiModelProperty(value = "项目名称")
    private String projectName;

    @ApiModelProperty(value = "对账开始时间")
    @NotNull(message = "对账开始时间必须填写")
    private String startDate;

    @ApiModelProperty(value = "对账结束时间")
    @NotNull(message = "对账结束时间必须填写")
    private String endDate;

    // 对账人
    private Long accountPeople;
}
